package com.fast.manager.base.repository;

import org.apache.ibatis.annotations.Param;

import com.fast.commons.repository.BaseMapper;
import com.fast.manager.base.domain.UserRole;

public interface UserRoleMapper extends BaseMapper<UserRole> {
	
	/**
	 * 批量添加角色到用户
	 * @param user_id
	 * @param role_ids
	 */
	public void addRoleToUserBatch(@Param("user_id") Long user_id, @Param("role_ids") String[] role_ids);
	
	/**
	 * 根据用户ID删除
	 * @param user_id
	 */
	public void deleteByUserIdBatch(@Param("user_ids") String[] user_ids);
}